<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <a href="${pageContext.request.contextPath}/menu.html" style="color: #8032f5">用户菜单</a>
    <title>个人信息页</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<table class="table table-hover col-sm-10">
    <h2>个人信息</h2>
    <thead>
    <tr>
        <th>用户名</th>
        <th>密码</th>
        <th>身份</th>
        <th>手机号</th>
        <th>预定的车位号(“0”表示未预定)</th>
        <th>用户ID</th>
        <th>拥有的VIP车位号(“0”表示未拥有)</th>
        <th>VIP到期时间</th>
    </tr>
    </thead>

    <c:forEach items="${user}" var="user">
        <tr>
            <td>${user.userName}</td>
            <td>${user.passWord}</td>
            <td>${user.role}</td>
            <td>${user.phoneNum}</td>
            <td>${user.bookNum}</td>
            <td>${user.userID}</td>
            <td>${user.VIPLotID}</td>
            <td>${user.VIPTime}</td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
